<?php
/**
 * Created by PhpStorm.
 * User: hebidu
 * Editior: zhouzhou
 * Date: 15/7/24
 * Time: 15:44
 */

namespace app\index\controller;

use think\Controller;
use app\extend\image\Image;
use app\system\model\UserPicture;
/**
 * 图片相关控制器
 * Picture ControllerClass
 * @package app\index\controller
 */
class Picture extends Controller
{
    protected function _initialize(){
    	$sizes = C('picture_crop_size');
    	if(!$sizes || !is_array($sizes)) $sizes = [60,120,150,180,200];
    	$this->accept_size = $sizes;
      header("X-Copyright:http://www.itboye.com");
    }

    public function returnDefaultImage(){
        //森森不传默认图片
        $imp = base64_decode($this->default);
        $im  = imagecreatefromstring($imp);
        // $im = imagecreatefromstring($this->default);
        if ($im !== false) {
            header('Content-Type: image/png'); //对应jpeg的类型
            imagepng($im);////也要对应jpeg的类型
            imagedestroy($im);
        }else{
            echo '图片未读入';
        }
        exit();
    }

    /**
     * 图片分页查询
     * eg ： http://mw.api.itboye.com/public/index.php/picture/query?order=create_time%20desc
     * @return array
     */

    // public function query(){
    //   $page_no   = I('get.p',1,'intval');
    //   $page_size = I('get.ps',10,'intval');
    //   $uid       = I('get.uid','','intval');
    //   $order     = I('get.order','');
    //   $field     = I('get.uid','id,ori_name,imgurl','intval');

    //   $pics = new UserPicture();
    //   $query= $pics->limit(($page_no-1)*$page_size,$page_size);
    //   if($field) $query->field($field);
    //   if($order) $query->order($order);

    //   $list  = $query->select();
    //   $count = $pics ->count();
    //   return json_encode(['count'=>$count,'list'=>$list]);
    // }

    //TODO : 同时处理id 和 微信头像
    public function index(){
        $id   = I('get.id',0);
        $size = I('get.size',0,'intval');
        //TODO: 带图片类型，对不同类型分批处理
        if($id <= 0) $this->returnDefaultImage();

        if(in_array($size,$this->accept_size) === false) $size = 0;

        $Picture = new UserPicture();
        $result = $Picture->where(['id'=>$id])->find();
        if(empty($result)) $this->returnDefaultImage();
        $url = '.'.$result['path'];


        if(file_exists($url) === false) $this->returnDefaultImage();
        if($size > 30 && $size < 1024){
// trace('before generate '.$size);
            //TODO:不能太大、太小，可配置
            $url = $this->generate($result,$size);
        }
        if($url === false) $this->returnDefaultImage();
        //      图片缓存设置
        $time = filemtime($url);
        $dt =date("D, d M Y H:m:s GMT", $time );
        header("Last-Modified: $dt");
        header("Cache-Control: max-age=844000");
        header('Content-type: image/'.$result['ext']);
        if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && $_SERVER['HTTP_IF_MODIFIED_SINCE']==$dt) {
            header("HTTP/1.0 304 Not Modified");
            exit;
        }

// trace('before read '.$url);
        $image = @readfile($url);
        if ($image == false) $this->returnDefaultImage();
        echo $image;
        exit();

    }

    /**
     * 生成缩略图
     * @param $info
     * @param $size
     * @return string
     */
    protected function generate($info,$size){

        $thumbnail_path = C('THUMBNAIL_PATH').'/w'.$size.'/';
        $save_name = $info['savename'];

        $relative_path = $thumbnail_path.$save_name;

// trace('in generate '.$relative_path);
        if(file_exists($relative_path)) return $relative_path;
        //        $thumbnail = M('Thumbnail');
        //
        //        $result = $thumbnail->where(array('width'=>$size,'pic_id'=>$info['id']))->find();
        //
        //        if(!empty($result)){
        //            return $result['url'];
        //        }

        $image = new Image();

        if(!file_exists(realpath('.'.$info['path']))) return false;

        $image->open( realpath('.'.$info['path']));

        if(!is_dir(($thumbnail_path))){
            if(!mkdir(($thumbnail_path))) return false;
        }
// trace('before thumb'.$size);
// //IMAGE_THUMB_FILLED  IMAGE_THUMB_FIXED
        $size_info = getimagesize(realpath('.'.$info['path']));
        $scale_size = $this->calcScale($size_info[0],$size_info[1],$size);
        $result = $image->thumb($scale_size['width'], $scale_size['height'],Image::IMAGE_THUMB_FIXED)->save($relative_path, null, 100);

        if(!file_exists(realpath($relative_path))) return false;

        return $relative_path;
       // $entity = array(
       //     'pic_id'=>$info['id'],
       //     'path'=>ltrim($thumbnail_path.$save_name,'.'),
       //     'url'=> $this->getSiteURL().ltrim($thumbnail_path.$save_name,"."),
       //     'width'=>$size,
       //     'create_time'=>time(),
       // );


       // $thumbnail_url = "";
       // if($thumbnail->create($entity)){
       //     $thumbnail_id = $thumbnail->add();
       //     if($thumbnail_id === false){
       //         LogRecord($thumbnail->getDbError(),__FILE__.',行:'.__LINE__);
       //     }else{
       //         $thumbnail_url = $thumbnail_path.$save_name;
       //     }
       // }

       // return $thumbnail_url;

    }
    protected function calcScale($w, $h, $size){
        $scale = $w / $h;

        if($w > $h){
            $dw = $size;
            $dh = intval($dw / $scale);
        }else{
            $dh = $size;
            $dw = intval($dh * $scale);
        }

        return ['width'=>$dw, 'height'=> $dh];
    }

    protected function getSiteURL(){
        return C('SITE_URL');
    }

    public function test(){

        $image = new Image();
        $info['path'] = '/';
        if(!file_exists('.'.$info['path'])) return false;

        $image->open( realpath('.'.$info['path']));

        $thumbnail_path = C('THUMBNAIL_PATH').'/'.date('Y-m-d',time()).'/';

        if(!is_dir(($thumbnail_path))){
            if(!mkdir(($thumbnail_path))) return false;
        }
    }

    //默认图片 //data:image/png;base64,
    protected $default = 'iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAKQWlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKGhCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a/cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE9wIYEAEOWAHA4WZmBEf4RALU/L09mZmoSMaz9u4ugGS72yy/UCZz1v9/kSI3QyQGAApF1TY8fiYX5QKUU7PFGTL/BMr0lSkyhjEyFqEJoqwi48SvbPan5iu7yZiXJuShGlnOGbw0noy7UN6aJeGjjAShXJgl4GejfAdlvVRJmgDl9yjT0/icTAAwFJlfzOcmoWyJMkUUGe6J8gIACJTEObxyDov5OWieAHimZ+SKBIlJYqYR15hp5ejIZvrxs1P5YjErlMNN4Yh4TM/0tAyOMBeAr2+WRQElWW2ZaJHtrRzt7VnW5mj5v9nfHn5T/T3IevtV8Sbsz55BjJ5Z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w7EQQWIGYjgWIkjMQAzHQgSJGYjhWIggMQMxHAsRJGYghmMhgsQMxHAsRJCYgRiOhQgSMxDDsRBBYgZiOBYiSMxADMdCBIkZiOFYiCAxAzEcCxEkZiCGYyGCxAzEcCxEkJiBGI6FCBIzEMOxEEFiBmI4FiJIzEAMx0IEiRmI4ViIIDEDMRwLESRmIIZjIYLEDMRwLESQmIEYjoUIEjMQw7EQQWIGYjgWIkjMQAzHQmJBLghgBMRMXW7yAAAAAElFTkSuQmCC';
    // protected $default = "iVBORw0KGgoAAAANSUhEUgAAAoAAAAKACAMAAAA7EzkRAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxQTFRFlpaWsrKywMDAzMzM7S/VDwAADrlJREFUeNrs3dGO47gRQFEV9f//nMwEGwTZnTYlVpGUde5LECDRSOIxSbnd7uOUFna4BQJQAEoACkAJQAEoASgAJQAFoASgAJQAFIASgAJQAlAASgAKQAlAASgBKAAlAAWgBKAAlAAUgBKAAlAASgAKQAlAASgBKAAlAAWgBKAAlAAUgBKAAlACUABKAApACUABKAEoACUABaAEoACUABSAEoACUAJQAApACUABKAEoACUABaAEoACUABSAEoACUAJQAEoACkAJQAEoASgAJQAFoASgAJQAFIASgAJQAlAACkAJQAEoASgAJQAFoASgAJQAFIASgAJQAlAASgAKQAlAASgBKAAlAAWgBKAAlAAUgBKAAlACUABKAApAASgBKAAlAAWgBKAAlAAUgBKAAlACUABKAApACUABKAEoACUABaAEoACUABSAEoACUAJQAEoACkAJQAEoACUABaAEoACUABSAEoACUAJQAEoACkAJQAEoASgAJQAFoASgAJQAFIASgAJQAlAASgAKQAlAASgAJQAF4Ftrv4r4/R/uBoAT5UUc/9Avi2AAWGzv+FBA+DSA7Wr76vtrKiy7EXX3OGNgZg5fIsDOYf3/QZ481bRLp3nr5Dr+hdvDdefItwam7hr2AvjfbdckfjfOrRUwaVWnHwDeRlhv8OYZRv6/E1UXAOC+Bkdm6PR5tuoSTgA3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BXAywy1//IGTBOWatwACuBdjn78KZ5siJY9YKDOBSgNHnLxLveM9Nb8e0FRjAlQA7/V0Zgww77Zi3AgO4DmDn8nvxLo3PqC39nADcEGB087u22sXoEVv+OQG4G8B2gd/VmzS4qkf6rgDAvQC2uKTv8mTT+2DTRrYFaRMggNMAtn931d6dEejeWv6dYFSdE4BrAQ4VhSfzPwavvTjObwEYt3oVwJY+pAteFNsCvNebAFZ8qdomAwDgEwC2gjHdaAIEcHOAsduOIHvnDuDeAGsGdfqkDOBDAcZ2W4LcBRjAvQHeHuvHTIAAbg2wblh3mQAB3Blg2+8lkf6zAwD3BTg01zxjAQZwY4BRO7BbLMAA7gswqkd2C38A7gowtnxVnAC+BGBseVYngC8BGFueVgPwJQBjy/Oq8AfgjgDblidW4g/AL59pYnN/AG4HMPmdjtjqngO4O8Bo00d4zft/AG4JsGSdi12XXwD3Ahht1SCvmv4A3AhgVE4zsas/APcAWKlvjGBUnxiAywGW67tPMOpPC8ClAOfgu0kwZpwUgEsARkSbaO+/Jxq7vTQAfFtd82C0U9Udr73yH7+I6NfcDAeAUxjG/0j8/d/QA1AASgAKQAlAASgBKAAlAAWgBKAAlAAUgBKAAlACUABKAApACUABKAEoACUABaAEoAAUgBKAAlACUABKAApACUABKAEoACUABaAEoACUABSAEoACUAJQAEoACkAJQAEoASgAJQAFoASgAJQAFIACUAJQAEoACkAJQAEoASgAJQAFoASgAJQAFIASgAJQAlAASgAKQAlAASgBKAAlAAWgBKAAlAAUgAJQAlAASgAKQAlAASgBKAAlAAWgBKAAlAAUgBKAAlACUABKAApACUABKAEoACUABaAEoACUABSAEoACUABKAApACUABKAEoACUABaAEoACUABSAEoACUAJQAEoACkAJQAEoASgAJQAFoASgAJQAFIASgAJQALoFAlAASgAKQAlAASgBKAAlAAWgBKAAlAAUgBKAAlACUABKAApACUABKAEoACUABaAEoACUABSAEoACUABKAApACUABKAGod/QvAQYAASUcD6GVctcAAAAASUVORK5CYII=";

    //支持裁减大小宽度
    protected  $accept_size = [];
}